package com.zheng.wechat.mp.dao.model;

import java.io.Serializable;

public class WechatMpActJiugonggeAwards implements Serializable {
    /**
     * ID
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 奖项名称
     *
     * @mbg.generated
     */
    private String awardsName;

    /**
     * 公众号原始ID
     *
     * @mbg.generated
     */
    private String jwid;

    /**
     * 奖项值
     *
     * @mbg.generated
     */
    private Integer awardsValue;

    /**
     * 创建人
     *
     * @mbg.generated
     */
    private String createBy;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAwardsName() {
        return awardsName;
    }

    public void setAwardsName(String awardsName) {
        this.awardsName = awardsName;
    }

    public String getJwid() {
        return jwid;
    }

    public void setJwid(String jwid) {
        this.jwid = jwid;
    }

    public Integer getAwardsValue() {
        return awardsValue;
    }

    public void setAwardsValue(Integer awardsValue) {
        this.awardsValue = awardsValue;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", awardsName=").append(awardsName);
        sb.append(", jwid=").append(jwid);
        sb.append(", awardsValue=").append(awardsValue);
        sb.append(", createBy=").append(createBy);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WechatMpActJiugonggeAwards other = (WechatMpActJiugonggeAwards) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getAwardsName() == null ? other.getAwardsName() == null : this.getAwardsName().equals(other.getAwardsName()))
            && (this.getJwid() == null ? other.getJwid() == null : this.getJwid().equals(other.getJwid()))
            && (this.getAwardsValue() == null ? other.getAwardsValue() == null : this.getAwardsValue().equals(other.getAwardsValue()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getAwardsName() == null) ? 0 : getAwardsName().hashCode());
        result = prime * result + ((getJwid() == null) ? 0 : getJwid().hashCode());
        result = prime * result + ((getAwardsValue() == null) ? 0 : getAwardsValue().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        return result;
    }
}